package com.iss.demo.service;

import com.iss.demo.dao.SaleCountDao;
import com.iss.demo.entity.SaleCount;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class SaleCountService {

    @Autowired
    private SaleCountDao dao;
    public List<SaleCount> selectAll(){
        List<SaleCount> list = new ArrayList<>();
        list = dao.selectAll();
        return list;
    }
    public Integer update(SaleCount saleCount){
        return dao.update(saleCount);

    }

    public SaleCount selectById(Integer s_id){
        return dao.selectById(s_id);
    }
}
